package cn.wj.school.app.ui.event;

import javafx.event.EventHandler;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;

public class WindowsCloseEvent implements EventHandler<WindowEvent> {

    private Stage stage;

    public WindowsCloseEvent(Stage stage){
        this.stage = stage;
    }

    public void handle(WindowEvent event) {
        event.consume();
    }
}
